package sunsun.xiaoli.jiarebang.beans;

/**
 * @Author:Create by Mr.w
 * @Date:2018/11/28 22:44
 * @Description:
 */
public class BaseChatResponse {
    long id;
    String type;// 03000 聊天信息（文本、表情）
    // 03001 某人进入聊天室信息
    // 03003 系统消息
    // 03004 被踢出聊天室的事件
    // 03005 被禁止发言事件
    // 03006 房间禁止聊天
    long timestamp;
    String content;
    String sign;
    String decodeData;//用于存放解密后的数据
    ContentBean contentBean;

    public ContentBean getContentBean() {
        return contentBean;
    }

    public void setContentBean(ContentBean contentBean) {
        this.contentBean = contentBean;
    }

    public static class ContentBean {
        String nick;
        String uid;
        String text;
        String room_id;
        String resume_uid;//被恢復发言的uid
        String forbid_uid;//被禁言的uid
        String role = "";//角色
        int id;
        int parent_id;
        int at_user_id;
        String at_user_nick;
        int record_id;
        String comment;
        String create_time;
        String update_time;
        String comments;
        String nickname;

        public String getRole() {
            return role;
        }

        public void setRole(String role) {
            this.role = role;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getParent_id() {
            return parent_id;
        }

        public void setParent_id(int parent_id) {
            this.parent_id = parent_id;
        }

        public int getAt_user_id() {
            return at_user_id;
        }

        public void setAt_user_id(int at_user_id) {
            this.at_user_id = at_user_id;
        }

        public String getAt_user_nick() {
            return at_user_nick;
        }

        public void setAt_user_nick(String at_user_nick) {
            this.at_user_nick = at_user_nick;
        }

        public int getRecord_id() {
            return record_id;
        }

        public void setRecord_id(int record_id) {
            this.record_id = record_id;
        }

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public String getCreate_time() {
            return create_time;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public String getUpdate_time() {
            return update_time;
        }

        public void setUpdate_time(String update_time) {
            this.update_time = update_time;
        }

        public String getComments() {
            return comments;
        }

        public void setComments(String comments) {
            this.comments = comments;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getNick() {
            return nick;
        }

        public void setNick(String nick) {
            this.nick = nick;
        }

        public String getUid() {
            return uid;
        }

        public void setUid(String uid) {
            this.uid = uid;
        }

        public String getText() {
            return text;
        }

        public void setText(String text) {
            this.text = text;
        }

        public String getRoom_id() {
            return room_id;
        }

        public void setRoom_id(String room_id) {
            this.room_id = room_id;
        }

        public String getResume_uid() {
            return resume_uid;
        }

        public void setResume_uid(String resume_uid) {
            this.resume_uid = resume_uid;
        }

        public String getForbid_uid() {
            return forbid_uid;
        }

        public void setForbid_uid(String forbid_uid) {
            this.forbid_uid = forbid_uid;
        }

        @Override
        public String toString() {
            return "ContentBean{" +
                    "nick='" + nick + '\'' +
                    ", uid='" + uid + '\'' +
                    ", text='" + text + '\'' +
                    ", room_id='" + room_id + '\'' +
                    ", role='" + role + '\'' +
                    '}';
        }
    }

    public String getDecodeData() {
        return decodeData;
    }

    public void setDecodeData(String decodeData) {
        this.decodeData = decodeData;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    @Override
    public String toString() {
        return "BaseChatResponse{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", timestamp=" + timestamp +
                ", content='" + content + '\'' +
                ", sign='" + sign + '\'' +
                ", decodeData='" + decodeData + '\'' +
                ", contentBean=" + contentBean +
                '}';
    }
}
